#include <stdio.h>
#include <stdlib.h>

typedef struct Node
{
    int vlaue;
    struct Node *next;
} Node_t, *Node_p;

int main()
{
    Node_p head = NULL;
    Node_p node1 = (Node_p)malloc(sizeof(Node_t));
    printf("node1 = %p\n", node1);
    node1->vlaue = 1;
    node1->next = NULL;

    Node_p node2 = (Node_p)malloc(sizeof(Node_t));
    printf("node2 = %p\n", node2);
    node2->vlaue = 2;
    node2->next = NULL;
    node1->next = node2;

    Node_p node3 = (Node_p)malloc(sizeof(Node_t));
    printf("node3 = %p\n", node3);
    node3->vlaue = 3;
    node3->next = NULL;
    node2->next = node3;

    printf("node1->next = %p\n", node1->next);
    printf("node2->next = %p\n", node2->next);
    printf("node3->next = %p\n", node3->next);

    Node_p node = node1;
    while (node != NULL)
    {
        printf("value = %d\n", node->vlaue);

        node = node->next;
    }
    return 0;
}